# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>

pkgname=libftdi-compat
pkgver=0.20
pkgrel=8
pkgdesc="A library to talk to FTDI chips"
arch=('loong64' 'x86_64')
url="https://www.intra2net.com/en/developer/libftdi/download.php"
license=('GPL2' 'LGPL2.1')
depends=('libusb-compat' 'gcc-libs')
makedepends=('boost')
source=("https://www.intra2net.com/en/developer/libftdi/download/libftdi-$pkgver.tar.gz"{,.sig})
sha512sums=('540e5eb201a65936c3dbabff70c251deba1615874b11ff27c5ca16c39d71c150cf61758a68b541135a444fe32ab403b0fba0daf55c587647aaf9b3f400f1dee7'
            'SKIP')
validpgpkeys=('3CEA9B8868BC3852618EB5B4707F91A424F006F5')  # Intra2net open source

build() {
  cd libftdi-$pkgver
  ./configure --prefix=/usr --without-examples
  make
}

package() {
  cd  libftdi-$pkgver
  make DESTDIR="$pkgdir" install
}
